﻿package com.bluediesel.utils.managers.scenemanager.events{	import flash.display.Sprite;	import flash.events.MouseEvent;	import com.greensock.*;	import com.greensock.plugins.*;		public class TextHover	{		public static var spd:Number = 0.1;				public static function init ( hov:Sprite, rev:Sprite ) : void		{			TweenPlugin.activate([AutoAlphaPlugin]);			hov.buttonMode = true;			hov.useHandCursor = true;			addListeners(hov, rev);		}				private static function addListeners(hov:Sprite, rev:Sprite):void		{			hov.addEventListener(MouseEvent.MOUSE_OVER, 								 function (e:MouseEvent) : void 	{	TweenMax.killTweensOf(rev);								 										TweenMax.to(rev,spd,{autoAlpha:1})																	}								);			hov.addEventListener(MouseEvent.MOUSE_OUT, 								 function (e:MouseEvent) : void		{	TweenMax.killTweensOf(rev);								 										TweenMax.to(rev,spd,{autoAlpha:0})																	}								);		}	}}